Migrate from Java 17 to Java 22 (Phases 1-4)#82
Open
devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
Open
Migrate from Java 17 to Java 22 (Phases 1-4)#82devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
Conversation
Phase 1-4 of Java 22 Migration: pom.xml changes: - Update Java version from 17 to 22 - Update Spring Boot from 3.3.3 to 3.3.5 - Update Maven compiler plugin from 3.8.0 to 3.11.0 - Update source/target from 1.8 to 22 - Update MySQL connector from mysql-connector-java 8.0.33 to mysql-connector-j 9.0.0 Dockerfile changes: - Update build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-22 - Update runtime stage from openjdk:17-alpine to eclipse-temurin:22-jre-alpine README.md changes: - Update Jenkins installation instructions from openjdk-17-jre to openjdk-22-jre Kubernetes changes: - Update bankapp-deployment.yml image tag to java22 for staging deployment Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
openjdk-22-jre is not available in Ubuntu repositories. Available versions are: 8, 11, 17, 18, 21, 25. Using openjdk-21-jre as the closest LTS version. Note: The application itself still runs on Java 22 via Docker (eclipse-temurin:22-jre-alpine), this only affects the Jenkins server installation. Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates the Spring Boot banking application from Java 17 to Java 22, covering Phases 1-4 of the migration plan. The changes span build configuration, Docker images, CI/CD documentation, and Kubernetes deployment.
pom.xml changes:
mysql-connector-java8.0.33 →mysql-connector-j9.0.0 (new artifact name)Dockerfile changes:
maven:3.8.3-openjdk-17→maven:3.9-eclipse-temurin-22openjdk:17-alpine→eclipse-temurin:22-jre-alpineDocumentation & Deployment:
openjdk-21-jre(see note below)java22for stagingUpdates since last revision
openjdk-22-jretoopenjdk-21-jrebecauseopenjdk-22-jreis not available in Ubuntu repositories. Available versions are 8, 11, 17, 18, 21, and 25. The application itself still runs on Java 22 via Docker containers.Review & Testing Checklist for Human
maven:3.9-eclipse-temurin-22andeclipse-temurin:22-jre-alpineexist on Docker Hub (verified by Devin, but double-check)mysql-connector-java)openjdk-21-jrepackage installs correctly on target Ubuntu version for JenkinsRecommended test plan:
Notes
Link to Devin run: https://app.devin.ai/sessions/8ea19666be8546bab54a3e13aa928d45
Requested by: Satwik Bebortha (@satwik-cog)